package cn.iocoder.yudao.module.member.api;

import cn.iocoder.yudao.module.member.api.pickup.PickupInfoApi;
import cn.iocoder.yudao.module.member.api.pickup.PickupInfoDTO;
import cn.iocoder.yudao.module.member.convert.pickupinfo.PickUpInfoConvert;
import cn.iocoder.yudao.module.member.service.pickupinfo.PickupInfoService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class PickupInfoApiImpl implements PickupInfoApi {
    @Resource
    private PickupInfoService pickupInfoService;
    @Override
    public PickupInfoDTO getPickupInfo(Long pickupInfoId) {
        return PickUpInfoConvert.INSTANCE.convertDto(pickupInfoService.getPickupInfo(pickupInfoId));
    }
}
